import java.io.IOException;

/**
 * 动态变换ip地址，由于网络限制不可用；
 *
 * @author admin
 */
public class IpChange {
    public static void main(String[] args) {
        try {
//            Runtime.getRuntime().exec("netsh interface ip set  address name= \"以太网\"  source=static addr=22.58.19.218 mask=255.255.255.0 gateway=22.58.19.254");
            Runtime.getRuntime().exec("netsh interface ip set  address name= \"以太网\"  source=static addr=22.58.19.195 mask=255.255.255.0 gateway=22.58.19.254");
        } catch (IOException e) {
            System.out.println("执行异常！！！");
            e.printStackTrace();
        }

    }
}
